package com.telnikoff.ts.gui;

import java.util.ArrayList;
import java.util.List;

import javax.swing.JScrollPane;
import javax.swing.JSplitPane;

import com.telnikoff.gf.GfCollectingContributor;
import com.telnikoff.gf.GfContributionCollector;
import com.telnikoff.gf.GfContributor;
import com.telnikoff.gf.GfMenuFactory;

public class LeftComponent implements GfCollectingContributor<JSplitPane, JScrollPane> 
{
	private final JScrollPane scroll = new JScrollPane();
	
	LeftComponent()
	{
		//
	}

	@Override
	public void contribute(GfContributionCollector<JSplitPane> collector) 
	{
		collector.getJComponent().add(scroll);
	}

	@Override
	public List<GfContributor<JScrollPane>> getContributors() 
	{
		List<GfContributor<JScrollPane>> cs = new ArrayList<GfContributor<JScrollPane>>();
		cs.add(new WorkspaceTreeComponent());
		return cs;
	}

	@Override
	public JScrollPane getJComponent() 
	{
		return scroll;
	}

	@Override
	public void contribute(GfMenuFactory mf) 
	{
		// TODO Auto-generated method stub
	}
}